package com.marlowe.api.enums;

/**
 * @program: lib-web
 * @description:
 * @author: Marlowe
 * @create: 2020-12-28 01:31
 **/
public enum HttpCode {
    /**
     * 相应成功，且有数据
     */
    SUCCESS(1, "成功"),
    /**
     * 相应成功，没有数据
     */
    FAIL(-1, "失败失败"),
    /**
     * 系统异常
     */
    ERROR(500, "系统异常");
    private int code;

    private String msg;

    HttpCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }


}
